﻿package com.orlleite.effects 
{
	import caurina.transitions.Tweener;
	import flash.display.DisplayObject;
	import gs.TweenMax;
	
	/**
	 * ...
	 * @author Orlando Leite
	 */
	public class ColorEffects 
	{
		
		public function ColorEffects() 
		{
			
		}
		
		public static function hueEffect( obj:DisplayObject, charAt:int, time:Number, delay:Number, params:Object ):void
		{
			var tween:TweenMax = new TweenMax( obj, time, { delay:delay + ( 0.05 * charAt ), colorMatrixFilter:{ hue:params.direction ? 80 : 0 } } );
		}
		
	}
	
}